package com.xiaoye.digitaltwin.easyexcel.converter;

import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.converters.ReadConverterContext;

/**
 * Create by xiaoye on 2023/4/8
 */

public class StudentConverter implements Converter<String> {
    @Override
    public String convertToJavaData(ReadConverterContext<?> context) throws Exception {
        return "男".equals(context.getReadCellData().getStringValue())?"1":"0";
    }
}
